import { DashboardIcon } from 'tdesign-icons-vue-next';
import { shallowRef } from 'vue';

import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/base',
    name: 'dashboard',
    meta: {
       title: {
                  zh_CN: '服务中心',
                  en_US: 'Overview',
                },
      icon: shallowRef(DashboardIcon),
      orderNo: 0,
      expanded:true,

    },

    children: [
      {
        path: 'base',
        name: 'DashboardBase',
        component: () => import('@/pages/dashboard/base/index.vue'),
        meta: {
          title: '控制台', hidden:false,expanded:true,
        },
       },
	   {
	     path: 'chat',
	     name: 'ChatBase',
	     //component: () => import('@/pages/chat/index.vue'),
	     meta: {
	       title: 'AI对话', expanded:true,
	       frameSrc:'https://api.coze.cn/open-platform/sdk/chatapp?params=%7B%22chatClientId%22%3A%2296sm2B5TaHw7ax-WaMRbI%22%2C%22chatConfig%22%3A%7B%22bot_id%22%3A%227395755727056338994%22%2C%22user%22%3A%22EVex6MNPHTda3vZzNDBkL%22%2C%22conversation_id%22%3A%221Dy7zvu4cnNs54MOeLnlX%22%7D%2C%22componentProps%22%3A%7B%22layout%22%3A%22pc%22%2C%22lang%22%3A%22zh-CN%22%2C%22uploadable%22%3Atrue%2C%22title%22%3A%2224%E5%B0%8F%E6%97%B6%E5%9C%A8%E7%BA%BF%E5%AE%A2%E6%9C%8D%22%2C%22icon%22%3A%22https%3A%2F%2Fpan.rs888.net%2Fassets%2Fimg%2Fkf.png%22%2C%22width%22%3A800%7D%7D',
	     },
	    },
       {
         path: 'preview',
         name: 'SitePreview',
         //component: () => import('@/pages/chat/index.vue'),
         meta: {
           title: '官网预览', expanded:true,
           frameSrc:'/',
         },
        },
       
    ],
  },
];
